package com.oa.admin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class CarAddDTO {

    @ApiModelProperty(value = "车牌号")
    @NotNull(message = "<车牌号>字段<carNum>不能为空！")
    private String carNum;

    @ApiModelProperty(value = "购车时间")
    @NotNull(message = "<购车时间>字段<buyTime>不能为空！")
    private Date buyTime;

    @ApiModelProperty(value = "车架号")
    @NotNull(message = "<车架号>字段<vin>不能为空！")
    private String vin;

    @ApiModelProperty(value = "发动机号")
    @NotNull(message = "<发动机号>字段<engineNumber>不能为空！")
    private String engineNumber;

    @ApiModelProperty(value = "车辆型号")
    @NotNull(message = "<车辆型号>字段<carType>不能为空！")
    private String carType;

    @ApiModelProperty(value = "出厂日期")
    @NotNull(message = "<出厂日期>字段<productionDate>不能为空！")
    private Date productionDate;

    @ApiModelProperty(value = "采购金额")
    @NotNull(message = "<采购金额>字段<buyMoney>不能为空！")
    private String buyMoney;

    @ApiModelProperty(value = "供应商id")
    @NotNull(message = "<供应商id>字段<supplierId>不能为空！")
    private String supplierId;

    @ApiModelProperty(value = "年审时间")
    @NotNull(message = "<年审时间>字段<yearCarefulTime>不能为空！")
    private Date yearCarefulTime;

    @ApiModelProperty(value = "提醒时间")
    @NotNull(message = "<提醒时间>字段<reminderTime>不能为空！")
    private Date reminderTime;

    @ApiModelProperty(value = "图片")
    @NotNull(message = "<图片>字段<img>不能为空！")
    private String img;

    @ApiModelProperty(value = "备注")
    private String remake;

    @ApiModelProperty(value = "保险信息集合")
    private List<InsuranceDTO> insuranceDTOList;

}
